<template>
  <div class="theme-container">
    <div class="content">
      <h1>404</h1>

      <blockquote>{{ getMsg() }}</blockquote>

      <RouterLink to="/"> Take me home. </RouterLink>
    </div>
  </div>
</template>

<script>
const msgs = [
  `There's nothing here.`,
  `How did we get here?`,
  `That's a Four-Oh-Four.`,
  `Looks like we've got some broken links.`,
];

export default {
  mounted() {
    // let routes = [this.$author._metaMap, this.$tag._metaMap],
    //   routeList = [];
    // routes.forEach((route) => {
    //   Object.keys(route).forEach((key) => {
    //     routeList.push(route[key].path);
    //   });
    // });
    // // console.log(routeList);
    // if(routeList.includes(this.$route.params.pathMatch)){
    //   this.$router.push(this.$route.params.pathMatch)
    // }
  },
  methods: {
    getMsg() {
      return msgs[Math.floor(Math.random() * msgs.length)];
    },
  },
};
</script>
